﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
    <xsl:output method="xml" indent="yes"/>

  <xsl:template match="/">
    <result>
      <xsl:apply-templates select="rss/channel/item"></xsl:apply-templates>
    </result>
  </xsl:template>

  <xsl:template match="rss/channel/item">
    <resource type ="BT" source="极影">
      <title>
        <xsl:value-of select ="title"/>
      </title>
      <url>
        <xsl:value-of select ="enclosure/@url"/>
      </url>
    </resource>
  </xsl:template>
</xsl:stylesheet>
